package com.itheima.Demo1;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class TestDemo1 {
    public static void main(String[] args) throws IOException {
        //创建字节输出流对象,用于写数据
        FileOutputStream fos = new FileOutputStream("c.txt");
        //写数据
        fos.write(78);
        //释放资源
        fos.close();
    }
}
